package com.rabbitmq.test.esjob;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

/**
 * @author: 顾志杰
 */
//@Component
//@ElasticJobConfig(
//        name = "com.rabbitmq.test.esjob.DemoJob",
//        cron = "0/10 * * * * ?",
//        description = "样例定时任务",
//        overwrite = true,
//        shardingTotalCount = 5
//)
public class DemoJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("执行Demo job");
    }
}
